<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="UTF-8">
	<title>新增</title>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="width:400px">
		<div style="padding:10px 60px 20px 60px;padding: 10%;" align="center" >
	    <form id="ff" method="post" action="role_UserandRole.action" >
	    	<table cellpadding="5">
	    		<tr>
	    			<input type="hidden" name="userid" value="${userid}"/>
	    			<td>角色:</td>
	    			<td>
	    			<input name="roleid" id="institution" name="institution" class="easyui-combobox" 
	    			data-options="width:150, valueField: 'rid', textField: 'rname', url: 'role_RoleSelectValue.action'"/>
	    			</td>
	    		</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提 交</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">取 消</a>
	    </div>
	    </div>
	</div>
	<script>
		function submitForm(){		
			$('#ff').form('submit', {          
			    success:function(data){    
			        if(data=="SUCCESS"){
			        	alert(data);
			        	$("#gg").dialog("close");
			        }
			    }    
			}); 
		}
		function clearForm(){
			$('#ff').form('clear');
		}
		
		
	</script>
</body>
